package com.example.sys.org.service;

import com.example.core.convert.context.RequestContext;
import com.example.core.service.BaseService;
import com.example.sys.org.dao.SysOrgElementDao;
import com.example.sys.org.model.SysOrgElement;

import java.util.List;

public interface SysOrgElementService extends BaseService<SysOrgElementDao, SysOrgElement> {

    public List<SysOrgElement> getNodeByPId(RequestContext requestContext,String parentId) throws Exception;

    public List<SysOrgElement> getRoot(RequestContext requestContext) throws Exception;

    public SysOrgElement buildNode(RequestContext requestContext ,SysOrgElement root) throws Exception;

}
